<div class="main">
<!-- Container-->


        <?php if($cat_id && !$post_id){
            $this->load->view('layouts/sidebar');
            $this->load->view('layouts/category_product');}
        else 
        $this->load->view('layouts/detail_product'); ?>
</div>

<!--End Contaier--> 